define(["jquery", "template","scprit/department/view/template/assessmentScreening/assessmentScreeningQuestion-tpl.js"], function ($, template,tpl) {
    var question={};
    var inTable = function (data) {
        return template("highRisk-tpl", data);
    };
    var inTable2 = function (data) {
        return template("anxiety-tpl", data);
    };
    var inTable3 = function (data) {
        return template("highRiskResult-tpl", data);
    };
    question.highRiskInit = function (options) {
        $(options.id).html(tpl.init());
        var html = inTable(options);
        $(options.id).html(html);
    };
    question.anxietyInit = function (options) {
        $(options.id).html(tpl.init2());
        var html = inTable2(options);
        $(options.id).html(html);
    };
    question.highRiskResultInit = function (options) {
        $(options.id).html(tpl.init3());
        var html = inTable3(options.data);
        $(options.id).html(html);
    };
    question.postpartumResultInit = function (options) {
        $(options.id).html(tpl.init4());
        var html = template("postpartumResult-tpl", options.data);
        $(options.id).html(html);
    };
    return question;
});